import request from '@/utils/request.js'
//获取所有权限点
export function  sysPermission(){
    return request({
        url:'/sys/permission'
    })
}
//根据id删除权限点
export function sysPermissionDel (id){
    return request({
        url:'/sys/permission/'+id,
        method:'delete'
    })
}
//添加权限点
export function  sysPermissionPost(data){
    return request({
        url:'/sys/permission',
        method:'post',
        data
    })
}
//根据ID更新权限点详情
export function sysPermissionPut(data){
    return request({
        url:'/sys/permission/'+data.id,
        method:'put',
        data
    })
}